QT       -= gui
QT       += core network

DEPLOY_DIR = $${OUT_PWD}/../../../deploy
DEPLOY_INCLUDE_DIR = $$DEPLOY_DIR/include
DEPLOY_LIB_DIR = $$DEPLOY_DIR/lib
DEPLOY_BIN_DIR = $$DEPLOY_DIR/bin

TEMPLATE = app
CONFIG   += console android_app
TARGET = protoqtrpc_samples_echo_service
DESTDIR = $$DEPLOY_BIN_DIR
DEPENDPATH += . src

# Input
HEADERS = \
    src/EchoServiceImpl.h
SOURCES = src/main.cpp \
    src/EchoServiceImpl.cpp

ADDITIONAL_PROTO_PATHS = --proto_path=$$DEPLOY_INCLUDE_DIR
PROTODIR = $${PWD}/../proto
PROTOSUBDIR = protoqtrpc/samples
PROTOS = \
    $$PROTODIR/$$PROTOSUBDIR/EchoService.proto

include ($${PWD}/../../../protobuf-compile.pri)

INCLUDEPATH += $$DEPLOY_INCLUDE_DIR
LIBS += -L$$DEPLOY_LIB_DIR -lprotoqtrpc
